package com.xc.h05.service.weichen;

import com.github.pagehelper.PageInfo;
import com.xc.h05.entity.Mytest;

import java.util.List;

public interface MyTestService {
    //增
    int add(Mytest mytest);
    //删
    int delete(int id);
    //批量删除
    int deletes(List list);
    //改
    int update(Mytest mytest);
    //根据**分页查询
    PageInfo<Mytest> findByPage(int pageNum, int pageSize, Mytest mytest);
    // 根据用户昵称分页查询（级联查询）
    PageInfo<Mytest> findByNicknamePage(int pageNum, int pageSize,Mytest mytest);
    // 根据testId查询
    List<Mytest> findByTestId(int testId);
}
